package com.niiwoo.civet.account.dao.mapper;

import com.niiwoo.civet.account.dao.entity.AccountCheckingRecharge;
import com.niiwoo.civet.account.dao.entity.AccountCheckingWithdraw;
import com.niiwoo.civet.account.dto.request.AccountCheckingWithdrawRequestDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountCheckingWithdrawMapperExt extends AccountCheckingWithdrawMapper {

    /**
     * 分页查询
     * @param accountCheckingWithdrawRequestDTO
     */
    public List<AccountCheckingWithdraw> queryCheckingWithdrawPage(AccountCheckingWithdrawRequestDTO accountCheckingWithdrawRequestDTO);
    /**
     * 批量修改
     * @return
     */
    int updateBatch(List<AccountCheckingWithdraw> records);

    /**
     * 批量添加
     * @return
     */
    int insertBatch(List<AccountCheckingWithdraw> records);

    /**
     * 根据平台记录删除
     * @param checkingRecordId
     * @return
     */
    int deleteCheckRecord(long checkingRecordId);

    /**
     * 根据对账记录ID，修改状态
     * @param checkingRecordId
     * @param status
     * @return
     */
    int updateByRecordIdSetStatus(@Param("checkingRecordId") Long checkingRecordId, @Param("status") Byte status);
}